package com.bawei.module_equipment.ui.equipment

import com.bawei.module_equipment.http.EquipmentApi
import com.bawei.module_equipment.http.EquipmentNetModule
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn

import javax.inject.Inject

/**
 *作者：lxy
 *功能:
 *时间：2025/6/13
 */

class EquipmentRepository @Inject constructor() {

    @Inject
    @EquipmentNetModule.CommonEquipmentApi
    lateinit var mApi: EquipmentApi

    fun inspection() = flow {
        emit(mApi.inspection())
    }.flowOn(Dispatchers.IO)
}